module.exports = {
    genRndCards:function() {
        var cards = [];
        for (var i = 0; i < 3; i++) {
            for (var j = 0; j < 9; j++) {
                for (var k = 0; k < 4; k++) {
                    cards.push([i, j]);
                }
            }
        }
        for (var i = 3; i < 4; i++) {
            for (var j = 0; j < 7; j++) {
                for (var k = 0; k < 4; k++) {
                    cards.push([i, j]);
                }
            }
        }
        
        for( i=0 ; i<cards.length ; i++){
            var tmpIndex = Math.floor(Math.random()*cards.length);
            var tmpVar =cards[tmpIndex];
            cards[tmpIndex]=cards[i];
            cards[i]=tmpVar;
        };
        return cards;
    }
}